using System;
using System.Collections;

namespace PMG.model
{
	#region EVENT

	/// <summary>
	/// EVENT object for NHibernate mapped table 'EVENT'.
	/// </summary>
	[Serializable]
	public class EVENT
	{
		#region Member Variables
		
		protected int _id;
		protected string _cODE;
		protected string _cNAME;
		protected string _uNDERTAKER;
		protected string _tARGET;
		protected string _lOCATOINS;
		protected int _aUDIENCENUM;
		protected string _cREATEBY;
		protected string _cREATEDATE;
		protected string _lSTMODBY;
		protected string _lSTMODDATE;
		protected string _mEDIA;

		#endregion

		#region Constructors

		public EVENT() { }

		public EVENT( string cODE, string cNAME, string uNDERTAKER, string tARGET, string lOCATOINS, int aUDIENCENUM, string cREATEBY, string cREATEDATE, string lSTMODBY, string lSTMODDATE, string mEDIA )
		{
			this._cODE = cODE;
			this._cNAME = cNAME;
			this._uNDERTAKER = uNDERTAKER;
			this._tARGET = tARGET;
			this._lOCATOINS = lOCATOINS;
			this._aUDIENCENUM = aUDIENCENUM;
			this._cREATEBY = cREATEBY;
			this._cREATEDATE = cREATEDATE;
			this._lSTMODBY = lSTMODBY;
			this._lSTMODDATE = lSTMODDATE;
			this._mEDIA = mEDIA;
		}

		#endregion

		#region Public Properties

		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public string CODE
		{
			get { return _cODE; }
			set
			{
				if ( value != null && value.Length > 200)
					throw new ArgumentOutOfRangeException("Invalid value for CODE", value, value.ToString());
				_cODE = value;
			}
		}

		public string CNAME
		{
			get { return _cNAME; }
			set
			{
				if ( value != null && value.Length > 200)
					throw new ArgumentOutOfRangeException("Invalid value for CNAME", value, value.ToString());
				_cNAME = value;
			}
		}

		public string UNDERTAKER
		{
			get { return _uNDERTAKER; }
			set
			{
				if ( value != null && value.Length > 200)
					throw new ArgumentOutOfRangeException("Invalid value for UNDERTAKER", value, value.ToString());
				_uNDERTAKER = value;
			}
		}

		public string TARGET
		{
			get { return _tARGET; }
			set
			{
				if ( value != null && value.Length > 2000)
					throw new ArgumentOutOfRangeException("Invalid value for TARGET", value, value.ToString());
				_tARGET = value;
			}
		}

		public string LOCATOINS
		{
			get { return _lOCATOINS; }
			set
			{
				if ( value != null && value.Length > 2000)
					throw new ArgumentOutOfRangeException("Invalid value for LOCATOINS", value, value.ToString());
				_lOCATOINS = value;
			}
		}

		public int AUDIENCENUM
		{
			get { return _aUDIENCENUM; }
			set { _aUDIENCENUM = value; }
		}

		public string CREATEBY
		{
			get { return _cREATEBY; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for CREATEBY", value, value.ToString());
				_cREATEBY = value;
			}
		}

		public string CREATEDATE
		{
			get { return _cREATEDATE; }
			set
			{
				if ( value != null && value.Length > 20)
					throw new ArgumentOutOfRangeException("Invalid value for CREATEDATE", value, value.ToString());
				_cREATEDATE = value;
			}
		}

		public string LSTMODBY
		{
			get { return _lSTMODBY; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for LSTMODBY", value, value.ToString());
				_lSTMODBY = value;
			}
		}

		public string LSTMODDATE
		{
			get { return _lSTMODDATE; }
			set
			{
				if ( value != null && value.Length > 20)
					throw new ArgumentOutOfRangeException("Invalid value for LSTMODDATE", value, value.ToString());
				_lSTMODDATE = value;
			}
		}

		public string MEDIA
		{
			get { return _mEDIA; }
			set
			{
				if ( value != null && value.Length > 200)
					throw new ArgumentOutOfRangeException("Invalid value for MEDIA", value, value.ToString());
				_mEDIA = value;
			}
		}

		

		#endregion
	}
	#endregion
}